import org.junit.Test;
import java.lang.reflect.Constructor;

/**
 * @作者: xiaoxun
 * @日期: 2025/3/14 12:12
 * @描述:
 */
public class StringTest {
	@Test
	public void testprintNumber() {
		StringUtil.printNumber(null);
		StringUtil.printNumber("");
		StringUtil.printNumber("admin");
	}

	@Test
	public void testGetMaxIndex() {
		System.out.println(StringUtil.getMaxIndex(null));
		System.out.println(StringUtil.getMaxIndex(""));
		System.out.println(StringUtil.getMaxIndex("admin"));
	}

	@Test
	public void studentTest() {
		Class s1 = Student.class;
		//1、获取类的全部构造器
		Constructor[] constructors = s1.getConstructors();
		//2、查看构造器里的内容
		for (Constructor constructor:constructors){
			System.out.println(constructor);
		}
	}
}
